package pers.cj.pdos.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 
 * </p>
 *
 * @author chenj
 * @since 2020-03-04
 */
public class GoodsTemplateGoods extends Model<GoodsTemplateGoods> {

    private static final long serialVersionUID = 1L;

    private String id;

    /**
     * 模板id
     */
    private String goodsTemplateId;

    /**
     * 商品id
     */
    private String goodsId;

    /**
     * 数量
     */
    private BigDecimal number;

    /**
     * 单位
     */
    private String unitId;

    /**
     * 公司id
     */
    private String companyId;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
    public String getGoodsTemplateId() {
        return goodsTemplateId;
    }

    public void setGoodsTemplateId(String goodsTemplateId) {
        this.goodsTemplateId = goodsTemplateId;
    }
    public String getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(String goodsId) {
        this.goodsId = goodsId;
    }
    public BigDecimal getNumber() {
        return number;
    }

    public void setNumber(BigDecimal number) {
        this.number = number;
    }
    public String getUnitId() {
        return unitId;
    }

    public void setUnitId(String unitId) {
        this.unitId = unitId;
    }
    public String getCompanyId() {
        return companyId;
    }

    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "GoodsTemplateGoods{" +
            "id=" + id +
            ", goodsTemplateId=" + goodsTemplateId +
            ", goodsId=" + goodsId +
            ", number=" + number +
            ", unitId=" + unitId +
            ", companyId=" + companyId +
        "}";
    }
}
